You can update the tenant attributes using the operations, such as desc-update, vni-update, port-add, port-delete, vlan-add, vlan-delete, vlan-update, num-vrf-update, and enable-bd-update.
Follow this procedure to update an existing tenant.
efa tenant update --name <tenant-name> --operation <value> --description <tenant-description> --l2-vni-range <value> --l3-vni-range <value> --vlan-range <value> --vrf-count <value> --enable-bd –port <list-of-ports> --force
(efa:root)root@node-2:~# efa tenant show --detail ============================================================ Name : tenant11 Type : private Description : VLAN Range : 2001-2150 L2VNI Range : L3VNI Range : VRF Count : 100 Enable BD : false Ports : 10.20.246.6[0/1-10] : 10.20.246.5[0/1-10] ============================================================ --- Time Elapsed: 159.855317ms ---
(efa:root)root@node-2:~# efa tenant update --name tenant11 --operation desc-update --description tenant11Desc Tenant updated successfully. --- Time Elapsed: 109.837946ms ---
(efa:root)root@node-2:~# efa tenant update --name tenant11 --operation enable-bd-update --enable-bd Tenant updated successfully. --- Time Elapsed: 92.004637ms ---
(efa:root)root@node-2:~# efa tenant update --name tenant11 --operation vni-update --l2-vni-range 10002-14190 --l3-vni-range 14191-16200 Tenant updated successfully. --- Time Elapsed: 97.955561ms ---
(efa:root)root@node-2:~# efa tenant update --name tenant11 --operation vlan-update --vlan-range 2-4090 Tenant updated successfully. --- Time Elapsed: 138.503235ms ---
(efa:root)root@node-2:~# efa tenant update --name tenant11 --operation num-vrf-update --vrf-count 10 Tenant updated successfully. --- Time Elapsed: 93.855235ms ---
(efa:root)root@node-2:~# efa tenant update --name tenant11 --operation port-add --port 10.20.246.5[0/15-17],10.20.246.6[0/15-17] Tenant updated successfully. --- Time Elapsed: 185.372609ms --- (efa:root)root@node-2:~# efa tenant show --detail ================================================== Name : tenant11 Type : private Description : tenant11Desc VLAN Range : 2-4090 L2VNI Range : 10002-14190 L3VNI Range : 14191-16200 VRF Count : 10 Enable BD : true Ports : 10.20.246.5[0/1-10,0/15-17] : 10.20.246.6[0/1-10,0/15-17] =================================================== --- Time Elapsed: 69.527552ms ---